<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/18 0018
 * Time: 下午 14:29
 */
namespace App\Service;

//use App\Service\Impl\type;

interface WeiXin
{
    public function getUserOs();

    public function getBaseinfo($code);

    public function getUserinfo($baseRs);

    public function saveUserInfo($code);

    /**
     * curl访问ucenter url 默认只获取header
     * @param type $ucphp ucenter接口url
     * @param type $getHeader 是否将header返回
     * @param type $getBody true返回 false不返回
     * @return boolean
     */
    public function curl($url, $post = null, $method = 'POST', $getHeader = false);

    /**
     *  获取cookie ,不做跳转
     */
    public function getWinxinCookie($_cookieid);

    public function getOpenid($rm, $isUseCookie = true);

    /**
     * 获取 accessToken
     * @param type $uid
     * @param type $newUserName
     * @return boolean
     */
    public function getAccessToken();

    public function getSignPackage($url = '');

    public function getJsApiTicket();


}